package com.txw.javaCore.model.mapper;

import com.txw.javaCore.model.entity.UserOrder;
import org.apache.ibatis.annotations.Param;

public interface UserOrderMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(UserOrder record);

    int insertSelective(UserOrder record);

    UserOrder selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(UserOrder record);

    int updateByPrimaryKey(UserOrder record);

    UserOrder selectByOrderNo(@Param("orderNo") String orderNo);

    int updateExpireOrder(@Param("orderNo") String orderNo, @Param("payStatus") Integer payStatus, @Param("finalStatus") Integer finalStatus);

    int updateCancelOrder(@Param("orderNo") String orderNo, @Param("payStatus") Integer payStatus, @Param("finalStatus") Integer finalStatus);
}